Enhance required_restart.py to use native commands#242
Conversation
Addresses bkbilly#239 by detecting available commands, falling back to original behaviour if required. Aligns with sys_updates.py for 6-minute check interval.
|
I appreciate you took the time to create this PR. |
|
FYI below. I do not consider this needs documenting; if the admin has pinned the kernel version as described below then presumably they are an advanced user and can react accordingly. An edge-case downside of this approach is present when kernel versions are managed externally and the administrator chooses to pin an older version, such as with Proxmox; It is recommended to always manually inspect the To direct needrestart to ignore your pinned kernel version, create a drop-in file in Note the use of regex, so |
Addresses #239 by detecting available commands, falling back to original behaviour if required. Aligns with sys_updates.py for 6-minute check interval.